package com.zrwl.poscloud.base.constants;

public class AskforleaveConstants {
    /***
     * status 类型: 事假,病假,其他
     */
    public static final int not_audited = 1;//未审核
    public static final int passed = 2;//已通过
    public static final int rejected = 3;//已驳回
    public static final int canceled = 4;//已取消
    public static String getStatusName(int type) {
        switch (type) {
            case not_audited:
                return "未审核";
            case passed:
                return "已通过";
            case rejected:
                return "已驳回";
            case canceled:
                return "已取消";
            default:
                return "其他";
        }
    }
    /***
     * type 类型: 事假,病假,其他
     */
    public static final int personal_leave = 1;//事假
    public static final int sick_leave = 2;//病假
    public static String getTypeName(int type) {
        switch (type) {
            case personal_leave:
                return "事假";
            case sick_leave:
                return "病假";
            default:
                return "其他";
        }
    }

    /**
     * check_result 结果：成功
     */
    public static final int check_result_unchecked = 0;//未审核
    public static final int check_result_succeed = 1;//审核成功
    public static final int check_result_error = 2;//审核失败
    public static String getCheckResultName(int type) {
        switch (type) {
            case check_result_unchecked:
                return "未审核";
            case check_result_succeed:
                return "审核成功";
            case check_result_error:
                return "审核失败";
            default:
                return "其他";
        }
    }

}
